<?php
require('db.php');
$tabel = $_GET['tabel'];
$data=json_decode(file_get_contents('php://input'));
$result = mysql_query("DELETE FROM $tabel WHERE id='$data->id'");

?>